<?php /* Smarty version 2.6.18, created on 2016-12-02 16:54:56
         compiled from notice/check.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		#mytable, #mytable thead, #mytable tbody, #mytable th, #mytable td, #mytable tr { 
			display: block; 
		}
		#mytable thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		#mytable td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:44% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		#mytable td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    #mytable td:nth-of-type(1):before { content: "标题"; }
			#mytable td:nth-of-type(2):before { content: "发布部门";}
			#mytable td:nth-of-type(3):before { content: "提交时间"; }
			#mytable td:nth-of-type(4):before { content: "发布时间"; }
			#mytable td:nth-of-type(5):before { content: "状态"; }
        }		
</style>
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">	
                <div class="box-header with-border">
                    <span class="fa  fa-volume-up" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">通知审批</p>
                </div>
                <div class="box-body">
				     <div class="col-md-2 form-group" style="padding:0;">
						  <label for="inputPassword3" class="col-sm-6 control-label text-right" style="padding:0;font-weight:500; margin:0;">
							   审批状态：
						  </label>
						  <div class="input-group col-md-6 col-xs-12">
							    <select class="form-control" name="is_show" style="padding:0;">
								<option value="">全部</option>
								<?php $_from = $this->_tpl_vars['show_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
										<option value="<?php echo $this->_tpl_vars['key']; ?>
"<?php if ($this->_tpl_vars['key'] == $this->_tpl_vars['is_show']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['value']; ?>
</option>
											
								<?php endforeach; endif; unset($_from); ?>
								</select> 
						  </div> 
				    </div>
					<div class="col-md-1 col-xs-12">		  
					    <input type="hidden" name="a" value="notice.checklist">
					    <button type="submit" class="btn btn-primary">查 询</button>
					</div>
                     <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr style="background-color:#a273ff;">
                                        <td>标题</td>
                                        <td>发布部门</td>
										<td>提交时间</td>
										<td>发布时间</td>
										<td>状态</td>
                                    </tr>	
                                </thead>
                                <tbody>
								<?php $_from = $this->_tpl_vars['notice_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                    <tr>
                                        <td><a href="index.php?a=notice.commondetails&notice_id=<?php echo $this->_tpl_vars['value']['notice_id']; ?>
" ><?php echo $this->_tpl_vars['value']['notice_title']; ?>
</a></td>
                                        <td><?php echo $this->_tpl_vars['value']['department_name']; ?>
</td>
										<td><?php echo $this->_tpl_vars['value']['create_time']; ?>
</td>
										<td><?php echo $this->_tpl_vars['value']['start_time']; ?>
</td>
                                        <td>
                                        	<a href="index.php?a=notice.checkupdate&notice_id=<?php echo $this->_tpl_vars['value']['notice_id']; ?>
" 
											<?php if ($this->_tpl_vars['value']['is_show'] == '未审核'): ?>class="btn btn-warning btn-xs"
											<?php elseif ($this->_tpl_vars['value']['is_show'] == '通过'): ?>class="btn btn-success btn-xs"
											<?php else: ?>class="btn btn-danger btn-xs"
											<?php endif; ?>>
												<?php echo $this->_tpl_vars['value']['is_show']; ?>

											</a>
                                        </td>
                                    </tr>	
                               <?php endforeach; endif; unset($_from); ?>    									                               	
                            </tbody>
                        </table>
				   </div><!--box-body -->
               </form>
			   <div class="box-footer">
			   <?php echo $this->_tpl_vars['page']; ?>

			   </div>
           </div><!--box box-default box-solid-->          
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script>
  $(function() {
    $( "#from" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#to" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#from" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
 </script>